import request from "../../api/request";
const market = "market";

// 分页查询
export function listByPage(data) {
  return request({
    url: market + "/preferentialModel/listByPage",
    method: "post",
    data: data || {}
  });
}

//  批量删除
export function remove(params) {
  return request({
    url: market + "/preferentialModel/remove",
    method: "delete",
    data: params
  });
}

// 新增充值优惠模型
export function save(data) {
  return request({
    url: market + "/preferentialModel/save",
    method: "post",
    data: data || {}
  });
}
// 修改充值优惠模型
export function update(data) {
  return request({
    url: market + "/preferentialModel/update",
    method: "post",
    data: data || {}
  });
}
